package zhr.chapter5.one;

public class Student extends Person{
    int num;
    int javaGrade;

    public Student() {
    }

    public Student(String name,int age){
        super(name, age);
    }

    public Student(String name, int age, int num, int javaGrade) {
        super(name, age);
        this.num = num;
        this.javaGrade = javaGrade;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getJavaGrade() {
        return javaGrade;
    }

    public void setJavaGrade(int javaGrade) {
        this.javaGrade = javaGrade;
    }
    public void doHomework(){
        System.out.println(this.name+"do homework.");
    }
}
